namespace DesignPattern.Creational.FactoryMethod
{
    public class ProductFactory
    {
        public static IProduct ShowProduct(ProductsType productsType)
        {
            switch (productsType)
            {
                case ProductsType.Television:
                    return new Television();
                case ProductsType.MobilePhone:
                    return new MobilePhone();
                default:
                    throw new System.ArgumentException(nameof(ProductsType));
            }
        }
    }
}